//引入封装的公共的请求插件
import {GET, POST, UPLOAD} from '@/services/request.js'

export default{
    register(data = {})
    {
        return POST({
            // 域名/api/user/base/register
            url:'user/base/register',
            params:data
        })
    },
    login(data = {})
    {
        return POST({
            url:'user/base/login',
            params:data
        })
    },
    check(data = {})
    {
        return POST({
            url:'user/base/check',
            params:data
        })
    },
    profile(data = {})
    {
        return UPLOAD({
            url:'user/base/profile',
            params:data
        })
    },
    EmailCode(data = {})
    {
        return POST({
            url:'user/base/code',
            params:data
        })
    },
    EmailCheck(data = {})
    {
        return POST({
            url:'user/base/echeck',
            params:data
        })
    }
    
}